projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24b704f
)
[!HAVE_FMOD] (fmod): Make consistent with ANSI definition.
author
Karl Heuer
<kwzh@gnu.org>
Wed, 25 Oct 1995 19:54:38 +0000
(19:54 +0000)
committer
Karl Heuer
<kwzh@gnu.org>
Wed, 25 Oct 1995 19:54:38 +0000
(19:54 +0000)
Don't use drem; it's not the same function.
src/data.c
patch
|
blob
|
history
diff --git
a/src/data.c
b/src/data.c
index 826fec57a87c4de3da0f75184167b5e2cb14f17c..53e40c11cef1d600fa0af4547dc5a803b71dba69 100644
(file)
--- a/
src/data.c
+++ b/
src/data.c
@@
-2142,11
+2142,9
@@
double
fmod (f1, f2)
double f1, f2;
{
-#ifdef HAVE_DREM /* Some systems use this non-standard name. */
- return (drem (f1, f2));
-#else /* Other systems don't seem to have it at all. */
+ if (f2 < 0.0)
+ f2 = -f2;
return (f1 - f2 * floor (f1/f2));
-#endif
}
#endif /* ! HAVE_FMOD */